<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<include file="Public/header" />
</head>
<body>
<script type="text/javascript">
	var carEditUrl="{:U('Logistics/carSave')}";//更新数据
	var getcarUrl="{:U('Logistics/get_car')}";
	var carDelUrl="{:U('Logistics/carDel')}";
	var carExamineUrl="{:U('Logistics/examinecar')}";
	var carClearUrl="{:U('Logistics/carClear')}";
	var carUndoUrl="{:U('Logistics/carUndo')}";
	var carInfoUrl="{:U('Logistics/logistics_batch')}";//车次信息
	var erpId="{:I('id')}";//erp企业对应id
	
	var pushOrderUrl="{:U('Pushsendapi/carOrderSend')}";//推送接口
	<!-- using('../../../default/js/car.js'); -->
</script>
<script type="text/javascript" src="__PUBLIC__/default/js/car.js"></script>

	<table id="carDatagrid" toolbar="#car_tb"></table>
	<!-- 添加 -->
	<div id="carAddDialog" class="easyui-dialog" title="添加" style="width:500px;padding:10px 20px"
        closed="true" buttons="#carAddButtons"  modal="true">
         <form id="carAddForm" method="post" novalidate>
			<div class="fitem">
                <label>车牌号</label>
                <input name="plate_number" class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[2,30]']" />
            </div>
            <div class="fitem">
                <label>车辆体积</label>
                <input name="car_volume" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>车辆载重(kg)</label>
                <input name="vehicle_load" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>

			<div class="fitem">
                <label>车辆类型	</label>
                <input name="car_cate" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>车辆品牌</label>
                <input name="car_brand" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>备案公司</label>
                <select class="easyui-combobox" name="logistics_company_no" id="logistics_company_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <option value="0">未选择</option>
					<volist name="logistics_list" id="vo">
                        <option value="{$vo['logistics_company_no']}">{$vo['logistics_company_name']}</option>
                    </volist>
                </select>  
            </div>
         </form>
    </div>
    <div id="carAddButtons">
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="carObj.add('{:U('Logistics/carAdd')}')" style="width:90px">添加</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#carAddDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /添加 -->
	<!-- 编辑 -->
    <div id="carEditDialog" class="easyui-dialog" style="width:400px;padding:10px 20px"
            closed="true" buttons="#carEditButtons"  modal="true">
        <form id="carEditForm" method="post" novalidate>          
            <div class="fitem">
                <label>车牌号</label>
				<input name="id"  type="hidden" />
                <input name="plate_number" class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[2,30]']" />
            </div>
            <div class="fitem">
                <label>车辆体积</label>
                <input name="car_volume" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>车辆载重(kg)</label>
                <input name="vehicle_load" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>

			<div class="fitem">
                <label>车辆类型	</label>
                <input name="car_cate" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>车辆品牌</label>
                <input name="car_brand" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>备案公司</label>
                <select class="easyui-combobox" name="logistics_company_no" id="logistics_company_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <option value="0">未选择</option>
					<volist name="logistics_list" id="vo">
                        <option value="{$vo['logistics_company_no']}">{$vo['logistics_company_name']}</option>
                    </volist>
                </select>  
            </div>
        </form>
    </div>
    <div id="carEditButtons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="carObj.save('{:U('Logistics/carSave')}')" style="width:90px">更新</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:
    $('#carEditDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /编辑 -->
    <!-- 搜索栏 -->
    <div id="car_tb">
        <form id="carSearchForm" method="post" novalidate>
             <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon icon-all" plain="true" onclick="carObj.showAll()">全部</a>     
			 车牌号:<input class="easyui-textbox" name="plate_number" style="width:150px;height:30px;">
			<a href="#" class="easyui-linkbutton searchBar" iconCls="icon-search" style="height:30px;">搜索</a>
        </form>
		<a href="javascript:void(0)" onclick="carObj.infoBar()" class="easyui-linkbutton" data-options="iconCls:'icon-information',plain:true">查看车次</a>
		<a href="javascript:void(0)" onclick="carObj.addBar()" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">添加</a>
        <a href="javascript:void(0)" onclick="carObj.editBar()" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">修改</a>
        <a href="javascript:void(0)" onclick="carObj.removeBar()" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">删除</a>
		<a href="javascript:void(0)" onclick="carObj.reloadBar()" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
		<a href="javascript:void(0)" onclick="carObj.saveBar()" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true">保存</a>
        <a href="javascript:void(0)" onclick="carObj.examineBar(1)" class="easyui-linkbutton" data-options="iconCls:'icon-key',plain:true">审核通过</a>
		<a href="javascript:void(0)" onclick="carObj.examineBar(2)" class="easyui-linkbutton" data-options="iconCls:'icon-key_delete',plain:true">审核不通过</a>
		<a href="javascript:void(0)" class="easyui-menubutton" data-options="menu:'#car_mm1',iconCls:'icon-recycle'">回收站</a>
		<div id="car_mm1" style="width:150px;">
			<div onclick="carObj.recycle()">查看</div>
			<div onclick="carObj.undoBar()" data-options="iconCls:'icon-undo'">恢复</div>
			<div onclick="carObj.clearBar()" data-options="iconCls:'icon-remove'">删除</div>
		</div>
    </div>
    <!-- /搜索栏 -->
</body>